home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / ForCLI / sumstdin.readme < prev    next >
Text File  |  1996-09-26  |  1KB  |  40 lines

  1. Short:  Sums all numbers from stdin
  2. Author: Angela Schmidt <Angela@rz.uni-karlsruhe.de>
  3.  
  4. Sumstdin reads line by line from stdin. It tries to interpret each
  5. line as a number and sums all of these numbers. As soon as the end
  6. of the file is reached, it prints the total sum to stdout.
  7.  
  8. Note: numbers read from stdin can be decimal, octal or hexadecimal
  9.       and must have the following syntax:
  10.  
  11.       abc   - decimal number
  12.       0xabc - hexadecimal number
  13.       0abc  - octal number
  14.  
  15.       Examles: 805509488, 0712316, 0xA9C0B
  16.                (decimal)  (octal), (hexadecimal)
  17.  
  18.       Output always is a decimal number.
  19.  
  20. Example:
  21.  
  22. 1> list all files lformat "%l" | sumstdin
  23.  
  24. This scans the whole directory and prints the sum of all filesizes.
  25.  
  26.  
  27. This program has been written to calculate the sizes for the
  28. FindPearls-database on the Meeting Pearls CD-ROMs and has been put
  29. into the public domain.
  30.  
  31.  
  32. ============================= Archive contents =============================
  33.  
  34. Original  Packed Ratio    Date     Time    Name
  35. -------- ------- ----- --------- --------  -------------
  36.     6664    4498 32.5% 24-Jun-95 17:02:04  sumstdin
  37.      892     488 45.2% 24-Jun-95 17:01:52  sumstdin.doc
  38. -------- ------- ----- --------- --------
  39.     7556    4986 34.0% 24-Jun-95 20:59:48   2 files
  40.